package com.cto.userserver.client.feign;

import com.cto.userserver.client.feign.fallback.UserServerFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zlt
 */
@FeignClient(name = "user-server", fallbackFactory = UserServerFallbackFactory.class, decode404 = true)
public interface UserService {
    /**
     * 查询用户信息
     */
    @GetMapping(value = "/user/getUserInfo")
    String strQuery(@RequestParam("userId") String userId);
}
